<div class="header-wrap">
	<div class="header_dt clearfix">
		<div class="left dt-logo"><a class="" href="/">Uemaple</a></div>
		<div class="left dt-nav">
			<ul class="clearfix">
				<li class="current"><a href="/"><?php echo __("Home");?></a></li>
				<li><a href="/newest"><?php echo __("Newest");?></a></li>
				<li><a href="/popular"><?php echo __("Popular");?></a></li>
				<li><a href="/list"><?php echo __("Invent");?></a></li>
				<li>
					<a href="javascript:void(0)"><?php echo __("Category");?>
						<span class="sub"></span>
					</a>
					<ul>
						<li class="current"><a href="/cate/article"><?php echo __("Article");?></a></li>
						<li><a href="/cate/works"><?php echo __("Works");?></a></li>
						<li><a href="/cate/technology"><?php echo __("Technology");?></a></li>
					</ul>
				</li>
			</ul>
		</div>
		<div class="left dt-search">
			<div class="search">
				<form  method="get" action="/search" name="searchForm" class="searchForm dt-search-info clearfix">
					<input class="searchArea" type="text"  placeholder="<?php echo __("Search");?>..." name="keyword" />
					<button class="icon icon-search search_btn" type="submit" value=""></button>
				</form>
				<div class="search_result search_history">
					<ul class="search_history_list">
					</ul>
				</div>
				<div class="search_result search_related" style="display:none;">
					<ul class="search_related_list"></ul>
				</div>
			</div>
		</div>
		<div class="account_user dt-nav-right">
			<?php if(!empty($user)):?>
			<ul class="account clearfix">
				<li class="">
					<span><?php echo __("welcome");?>，</span><a class="" title="?php echo $user['username']?>" href="/u/<?php echo $user['username']?>"><?php echo strlen($user['username'])<10?$user['username']:substr($user['username'],0,10).'...';?><span class="sub"></span></a>
					<ul>
						<li><a class="" href="/u/<?php echo $user['username']?>/wish"><?php echo __("My WishList");?></a></li>
						<li><a class="" href="/u/<?php echo $user['username']?>/praise"><?php echo __("My PraiseUp");?></a></li>
						<li><a class="" href="/u/<?php echo $user['username']?>/review"><?php echo __("My Review");?></a></li>
						<li><a class="" href="/user/setting"><?php echo __("Setting");?></a></li>
						<li><a class="" href="/user/logout"><?php echo __("Log Out");?></a></li>
						<li class="upload_post"><a class="">Post</a></li>
					</ul>
				</li>
			</ul>
			<?php else:?>
			<ul class="visitor clearfix">
				<li class="show_login"><a class=""><?php echo __("Sign In");?></a></li>
				<li class="show_reg"><a class=""><?php echo __("Sign Up");?></a></li>
			</ul>
			<?php endif;?>
		</div>
	</div>
</div>